package com.caipin.domain.web;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2021-10-06 11:56
 * @Description: TODO
 */
public class TemperatureInfo {
    private int total;

    private int normal;

    private int abnormal;

    public com.caipin.domain.web.TemperatureInfo setTotal(int total) {
        this.total = total;
        return this;
    }

    public com.caipin.domain.web.TemperatureInfo setNormal(int normal) {
        this.normal = normal;
        return this;
    }

    public com.caipin.domain.web.TemperatureInfo setAbnormal(int abnormal) {
        this.abnormal = abnormal;
        return this;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.caipin.domain.web.TemperatureInfo))
            return false;
        com.caipin.domain.web.TemperatureInfo other = (com.caipin.domain.web.TemperatureInfo)o;
        return !other.canEqual(this) ? false : ((getTotal() != other.getTotal()) ? false : ((getNormal() != other.getNormal()) ? false : (!(getAbnormal() != other.getAbnormal()))));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.caipin.domain.web.TemperatureInfo;
    }

    public int hashCode() {
        int PRIME = 59;
        result = 1;
        result = result * 59 + getTotal();
        result = result * 59 + getNormal();
        return result * 59 + getAbnormal();
    }

    public String toString() {
        return "TemperatureInfo(total=" + getTotal() + ", normal=" + getNormal() + ", abnormal=" + getAbnormal() + ")";
    }

    public int getTotal() {
        return this.total;
    }

    public int getNormal() {
        return this.normal;
    }

    public int getAbnormal() {
        return this.abnormal;
    }
}
